package com.example.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.example.entity.User;

public interface UserRepository extends JpaRepository<User, Integer> {
	@Query(value = "from User where username = ?1")
	public User findByUsername(String username);
}
